package com.webbei.shoppingCar.action;

import org.apache.struts2.ServletActionContext;

import com.webbei.pojo.Customer;
import com.webbei.shoppingCar.service.shoppingCarService;

public class getSessionCustomer {
	private shoppingCarService scs;
	private Customer user;
	public String execute(){
		String username=(String) ServletActionContext.getContext().getSession().get("username");
		user=scs.getCustomerByUserName(username);
		return "success";
	}
	public Customer getUser() {
		return user;
	}
	public void setUser(Customer user) {
		this.user = user;
	}
	public void setScs(shoppingCarService scs) {
		this.scs = scs;
	}
}
